﻿<ResourceDictionary 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
   xmlns:local="clr-namespace:Orbifold.Trefoil"
    >
  <!--This is the data storage of the Office Ribbon (toolbar)-->
  <XmlDataProvider Source="/Resources/RibbonData.xml" x:Key="ShapeSourceData" XPath="Toolbar/Ribbon[position()=1]/*"/>
  <CollectionViewSource x:Key="ShapesSource" Source="{Binding Source={StaticResource ShapeSourceData}}">
    <CollectionViewSource.GroupDescriptions>
      <PropertyGroupDescription PropertyName="@Category"/>
    </CollectionViewSource.GroupDescriptions>
  </CollectionViewSource>
  <XmlDataProvider Source="/Resources/RibbonData.xml" x:Key="FormattingSourceData" XPath="Toolbar/Ribbon[position()=2]/*"/>
  <CollectionViewSource x:Key="FormattingSource" Source="{Binding Source={StaticResource FormattingSourceData}}">
    <CollectionViewSource.GroupDescriptions>
      <PropertyGroupDescription PropertyName="@Category"/>
    </CollectionViewSource.GroupDescriptions>
  </CollectionViewSource>
  <!--The list of colors appearing in the color picker.-->
  <!--<ObjectDataProvider x:Key="colors" ObjectType="{x:Type local:ColorPicker}" MethodName="get_Colors"/>-->
</ResourceDictionary>